//
//  HiJonesClass.h
//  HiCar
//
//  Created by 丁一 on 2019/1/9.
//  Copyright © 2019 丁一. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^SucceessBlock)(BOOL fff, NSString* ggg);

@interface HiJonesClass : NSObject

+ (NSInteger)faceDetectWithImage:(UIImage *)image;

+(BOOL)checkName:(NSString *)_text;

+ (id)readLocalFileWithName:(NSString *)name;

+ (NSInteger)ageWithDateOfBirth:(NSString *)date;

+ (NSDictionary *)carinfo:(NSString *)carid;

+ (UIImage *)compressImage:(UIImage *)image toByte:(NSUInteger)maxLength;

+ (NSData *)resetSizeOfImageData:(UIImage *)sourceImage maxSize:(NSInteger)maxSize;

+ (NSString *)height:(NSString *)height weight:(NSString *)weight;

+ (CGFloat)getContent:(NSString *)content width:(CGFloat)width font:(UIFont *)font jianju:(CGFloat)jianju;

+ (CLLocationDistance)Juli:(NSString *)lat anglong:(NSString *)longitude;

/**
 *  显示几分钟前、几小时前等 str格式：yyyy-MM-dd HH:mm:ss
 */
+ (NSString *)compareCurrentTime:(NSString *)str;

+ (NSString *) timeZhuan:(NSString *)time;

+ (BOOL)isUserNotificationEnable;

+ (BOOL)laction_open;

/**
*  分享
*  多图分享，items里面直接放图片
*  分享链接
*  NSString *textToShare = @"mq分享";
*  UIImage *imageToShare = [UIImage imageNamed:@"imageName"];
*  NSURL *urlToShare = [NSURL URLWithString:@"https://www.baidu.com"];
*  NSArray *items = @[urlToShare,textToShare,imageToShare];
*/
+ (void)mq_share:(NSArray *)items target:(id)target success:(SucceessBlock)successBlock;

@end

NS_ASSUME_NONNULL_END
